import { ElMessage } from 'element-plus'

/**
 * @function 对element message再封装
 * @description 对element message再封装
 * @param message {String} el的message
 * @param type {String} el的type
 * @author qmc 2023-12-22
 * @version 1.0.0
 * @example el_message("hello","success")
 */
const el_message = (message,type)=>{
    ElMessage({
        message,
        center: true,
        type,
        duration: 3000,
        grouping:true,
    })
}

export {
    el_message,  
}